<?php
/**
 * Created by PhpStorm.
 * User: Season
 * Date: 2018/12/15
 * Time: 15:07
 */

namespace app\api\service;


class AccessToken
{
    private $tokenUrl;
    const TOKEN_CACHED_KEY = 'access';
    const TOKEN_EXPIRE_IN = 7000;

    function __construct()
    {
        $url = config('wx.access_token_url');
        $url = sprintf($url, config('wx.app_id'), config('wx.app_secret'));
        $this->tokenUrl = $url;
    }
}